/*
 * =====================================================================================
 *
 *       Filename:  glasswindow.h
 *
 *    Description:  Glass Window的声明定义
 *
 *        Version:  1.0
 *        Created:  12/01/11 20:41:11
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  H_Ley (), kalxd@126.com
 *        Company:  
 *
 * =====================================================================================
 */

#ifndef GLASSWINDOW_H
#define GLASSWINDOW_H 

#include "glassglobal.h"

class GlassWindow:public QWidget{ Q_OBJECT
	public:
		GlassWindow(QWidget *perant=0);
		~GlassWindow();
	protected:
		void paintEvent(QPaintEvent *event);
		void mousePressEvent(QMouseEvent *event);
		void mouseMoveEvent(QMouseEvent *event);
		void resizeEvent(QResizeEvent *event);
	private:
		QPixmap *bg_pix;
		QColor bg_color;
		qreal background_color_alpha;
		QPoint old_point;

		QPushButton *close_button;
};

#endif
